/**
 * Created by Administrator on 2018/9/3.
 */
document.getElementById("mySwitch").addEventListener("toggle",function(event){
    if(event.detail.isActive){
                var data={'lang':"cn"}
                $.get("/index/login/lang.html",data,function(){
                    location.reload();
                })

    }else{

                var data={'lang':"en"}
                $.get("/index/login/lang.html",data,function(){
                    location.reload();
                })
        }
})